package com.forekonw.demotest1103wan02;

import com.forekonw.demo6.Emp;

public class SalariedEmployee extends Employee {
    private double monthlySalary;

    public SalariedEmployee(){

    }

    public SalariedEmployee(String name,int number,String birthday){
        super(name, number, birthday);
    }

    @Override
    public double earnings() {
        return monthlySalary;
    }

    @Override
    public String toString() {
        Employee e = new SalariedEmployee();
        return e.getName()+"   "+e.getNumber()+"   "+e.getBirthday();
    }
}
